package com.bh.shipment.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BhtmsBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运单回单明细对象 jc_shipment_back_detail
 *
 * @author slx
 * @date 2023-04-22
 */
@TableName("jc_shipment_back_detail")
@Data
public class JcShipmentBackDetail extends BhtmsBaseEntity {
    

    /**
     * 回单份数
     */
    @Excel(name = "回单份数")
    private Long backNumber;

    /**
     * 回单时间
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date backTime;

    /**
     * 签收数量
     */
    @Excel(name = "签收数量")
    private Integer singNumber;

    /**
     * 签收时间
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签收时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /**
     * 分段订单ID
     */
    @Excel(name = "分段订单ID")
    private Long jcLedId;

    /**
     * 运单回单ID
     */
    @Excel(name = "运单回单ID")
    private String jcShipmentBackId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("description", getDescription())
               
                .append("modifyName", getModifyName())
                .append("modifyTime", getModifyTime())
                .append("name", getName())
                .append("status", getStatus())
                .append("backNumber", getBackNumber())
                .append("backTime", getBackTime())
                .append("singNumber", getSingNumber())
                .append("time", getTime())
                .append("jcLedId", getJcLedId())
                .append("jcShipmentBackId", getJcShipmentBackId())
                .toString();
    }
}
